<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>学生端考试信息界面</title>
  <link rel="stylesheet" href="../layui/css/layui.css">
  <script src="../js/jquery.min.js"></script>
</head>

<body class="layui-layout-body">
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header layui-bg-cyan">
      <div class="layui-logo"><img src="../img/hnzyy.png" alt=""></div>
      <!-- 头部区域（可配合layui已有的水平导航） -->
      <div style="text-align: center;color: white;font-size: 28px;line-height: 70px;">
        学生管理系统
      </div>
      <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
          <a href="javascript:;">
            <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
            aimee 201701
          </a>
          <dl class="layui-nav-child">
            <dd><a href="">基本资料</a></dd>
            <dd><a href="">安全设置</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item"><a href="">退出</a></li>
      </ul>
    </div>
    <!-- style="background-color: rgb(70, 83, 100);" -->
    <div class="layui-side layui-bg-black">
      <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree layui-bg-black" lay-filter="test" id="main_left">
          <li class="layui-nav-item layui-nav-itemed">
            <a class="" href="http://localhost:8080/OnlineExam/admin/lunbo?m=find" target="mytarget">首页</a>
          </li>
          <li class="layui-nav-item">
            <a href="" target="mytarget">我的考勤</a>
          </li>
          <li class="layui-nav-item">
            <a href="http://localhost:8080/OnlineExam/user/myexam.jsp" target="mytarget">我的考试</a>
          </li>

          <li class="layui-nav-item">
            <a href="javascript:;">留言板</a>
            <dl class="layui-nav-child">
              <dd><a href="http://localhost:8080/OnlineExam/admin/leaveword?m=findLeaveword" target="mytarget">全部留言</a></dd>
              <dd><a href="http://localhost:8080/OnlineExam/admin/myLeave.jsp" target="mytarget">我的留言</a></dd>
            </dl>
          </li>

        </ul>
      </div>
    </div>

    <div class="layui-body">
      <!-- 内容主体区域 5-->
      <div style="padding: 15px;">
        <iframe src="http://localhost:8080/OnlineExam/admin/lunbo?m=find" name="mytarget" style="display:block;width:100%;height:500px" frameborder="0" scrolling="yes"></iframe>
      </div> 
    </div>

<%--    <div class="layui-footer">
      <!-- 底部固定区域 -->
      © layui.com - 底部固定区域
    </div>--%>
  </div>
  <script src="../layui/layui.js"></script>
  <script>
    //JavaScript代码区域
    layui.use('element', function () {
      var element = layui.element;

    });
    $(function(){
   $("#main_left a").on("click",function(){
         var address =$(this).attr("href");
      $("iframe").attr("src",address);
   });
});
  </script>
</body>

</html>